#include "Explosion.h"

Explosion::Explosion(ID2D1Bitmap *tex) : angle(0), speed(0)
{
						//Texture,Width,Height
	explosionSprite = new Sprite(tex,128,128);

	position.width = 600;
	position.height = 300;

	explosionSprite->SetAnimate(true);
	explosionSprite->SetLoop(true);
}
Explosion::~Explosion()
{
	delete explosionSprite;
}
void Explosion::Render(ID2D1HwndRenderTarget* render)
{
	
	render->SetTransform(D2D1::Matrix3x2F::Rotation(angle,D2D1::Point2F(100.0F,100.0F)));
	explosionSprite->Render(position,render);
	render->SetTransform(D2D1::IdentityMatrix());
}
void Explosion::Update(long elapsedTime)
{


}